import request from '@/utils/request'
import defaultSettings from '@/settings'

// 消息配置维护查询
export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/baleSetting/BepsBaleMethodApprove/tableSearch`,
}

// 发起清算行 查询
export function queryUrl() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/baleSetting/BepsBaleMethodApprove/page`,
    method: 'get',
  })
}

// 发起清算行/发起行 查询
export function detailsQuery(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/baleSetting/BepsBaleMethodApprove/search?key=${data}`,
    method: 'get',
  })
}

// 审核
export function approve(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/baleSetting/BepsBaleMethodApprove/approve`,
    method: 'post',
    params:{id:data.id}
  })
}

// 提交
export function reject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/baleSetting/BepsBaleMethodApprove/reject`,
    method: 'post',
    params:{id:data.id}
  })
}
